﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Kryptonalysis.Rank
{
    /// <summary>
    /// List of LetterRanks in the english lenguage.
    /// </summary>
    public class EnglishLetterRanks : LetterRanks
    {
        /// <summary>
        /// Fills this instance.
        /// </summary>
        protected override void Fill()
        {
            Add(new LetterRank(1 ,'e'));
            Add(new LetterRank(2,'t'));
            Add(new LetterRank(3 ,'a'));
            Add(new LetterRank(4 ,'o'));
            Add(new LetterRank(5 ,'i'));
            Add(new LetterRank(6 ,'n'));
            Add(new LetterRank(7 ,'s'));
            Add(new LetterRank(8 ,'h'));
            Add(new LetterRank(9 ,'r'));
            Add(new LetterRank(10 ,'d'));
            Add(new LetterRank(11,'l'));
            Add(new LetterRank(12 ,'c'));
            Add(new LetterRank(13 ,'u'));
            Add(new LetterRank(14 ,'m'));
            Add(new LetterRank(15 ,'w'));
            Add(new LetterRank(16 ,'f'));
            Add(new LetterRank(17 ,'g'));
            Add(new LetterRank(18 ,'y'));
            Add(new LetterRank(19 ,'p'));
            Add(new LetterRank(20 ,'b'));
            Add(new LetterRank(21 ,'v'));
            Add(new LetterRank(22 ,'k'));
            Add(new LetterRank(23 ,'j'));
            Add(new LetterRank(24 ,'x'));
            Add(new LetterRank(25 ,'q'));
            Add(new LetterRank(26 ,'z'));
        }

        /// <summary>
        /// Property to get the language.
        /// </summary>
        /// <value>The language.</value>
        public override string Language
        {
            get { return "English"; }
        }
    }
}
